package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.PositionEntity;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;


import java.util.List;

@Repository
public interface PositionMapper extends BaseMapper<PositionEntity> {
   @Select("select * from position")
    List<PositionEntity> queryListAll();

    @Select("select * from position where id = #{positionId}")
    PositionEntity findSharePositionById(String positionId);


}
